$(function() {
    $('#student').datagrid({
        url: '../../class_queryByUser.action',
        singleSelect: true,
        columns: [
            [{
                hidden:true,
                field: 'id ',
                title: 'id',
                width: 100,

            }, {
                field: 'classcode',
                title: '班级号',
                width: 100,
                align: 'center'
            }, {
                field: 'name',
                title: '班级名',
                width: 100,
                align: 'center'
            }, {
                field: 'createdate',
                title: '创建日期',
                width: 100,
                align: 'center'
            }]
        ],
        fitColumns: true,
        pagination: true,
        pageSize: 10,
        fitColumns: true,
        striped: true,
        rownumbers: true
    });

});
